package pl.matt.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class ApplicationContextUtils {

	private static final String APPLICATION_CONTEXT_PATH = "resources/application-context.xml";
	
	public static ApplicationContext getApplicationContest() {
		return new FileSystemXmlApplicationContext(APPLICATION_CONTEXT_PATH);
	}
	
	public static ApplicationContext getApplicationContest(String path) {
		return new FileSystemXmlApplicationContext(path);
	}
	
}
